package edu.yzu.testspringboot002.po;


import edu.yzu.testspringboot002.utils.group.GroupQuery;
import edu.yzu.testspringboot002.utils.group.GroupUpdate;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;


import java.io.Serializable;

/**
 * 我们聊天dto
 *
 * @author yulang
 * @date 2023-08-21
 */
@Data
public class WeChatDTO implements Serializable {

    private static final long serialVersionUID = 1551312165650540531L;




    private String code;

    private String encryptedData;

    private String iv;

    private String sessionKey;

    private String openId;

    private String wx_login_code;



    @NotBlank(groups = {GroupQuery.class, GroupUpdate.class},message = "登录手机号不能为空")
    private String phone;


    @NotBlank(groups = {GroupQuery.class},message = "登录密码不能为空")
    private String password;
}
